#include<stdio.h>

int main() {
    int a;
    scanf("%d", &a);
    printf("%2d", a << 1);
    printf("\n");
    printf("%2d", a >>1);

    return 0;
}